package com.blb.ioc;

public class ComputerDemo1 {
    public static void main(String[] args) {


        Computer computer = new Computer();
        computer.setBrand("华为");
        computer.setCpu(new IntelCpu());
        computer.setMemory(new SumsangMemory());
        computer.start();
    }
}
